package com.webSite.demo.cy.utils;

import java.awt.geom.Point2D;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

public class MapUtilsTest {

    public static void main(String[] args) {
        Point2D.Double f = new Point2D.Double(116.36288155529783,39.9220565328283);
        List<Point2D.Double> list = new LinkedList<>();
        list.add(new Point2D.Double(116.38451088879393,39.91468372317298));
        list.add(new Point2D.Double(116.40888680432127,39.91468372317298));
        list.add(new Point2D.Double(116.41094674084471,39.90250368311939));
        list.add(new Point2D.Double(116.3860558411865,39.90250368311939));
        System.out.println(BaiduMapUtils.isInPolygon(f,list));

    }
}
